import port from "./ip";

let path = {
  commonSelect: "/sms/admin/common/enum", //获取下拉列表
  operatorSelect: "/sms/admin/gateway/queryByOperator", //运营商下拉列表
  //登陆
  login: "/sms/admin/login", //登陆
  logout: "/sms/admin/logout", //登出
  modifyPassword: "/sms/admin/modPwd", //修改密码
  captcha: "/sms/admin/captcha", //获取图形验证码
  sendCodeMessage: "/sms/admin/sendCodeMessage", //获取短信验证码
  submitMessageCode: "/sms/admin/submitMessageCode", //提交短信验证码
  //客户管理
  addUser: "/sms/admin/user/addUser", //添加User详情
  deleteUser: "/sms/admin/user/deleteUser", //删除User详情
  getUserListByParams: "/sms/admin/user/getUserListByParams", //根据条件查找UserList详情
  getAllUserAccount: "/sms/admin/user/getAccountList", //获取所有账号
  updateUser: "/sms/admin/user/updateUser", //更新User详情
  updatePassword: "/sms/admin/user/updatePassword", //重置密码
  changeStatus: "/sms/admin/user/changeStatus", //切换状态
  addRemindValue: "/sms/admin/user/addSmsNum", //充值退款
  userProductByParams: "/sms/admin/user/userProductByParams", //查找User_ProductList详情
  updateUserProduct: "/sms/admin/product/updateUserProduct", //更新UserProduct详情
  updateUserProductParams: "/sms/admin/product/updateUserProductParams", //更新UserProductParams详情
  showPassword: "/sms/admin/user/showPassword", //查看密码

  getRemindValueList: "/sms/admin/user/getSmsNumList", //获取充值列表

  addUserTemplate: "/sms/admin/UserTemplate/addUserTemplate", //添加UserTemplate详情
  deleteUserTemplate: "/sms/admin/UserTemplate/deleteUserTemplate", //删除UserTemplate详情
  getUserTemplateByParams: "/sms/admin/UserTemplate/getUserTemplateByParams", //根据params查找UserTemplate详情
  updateUserTemplate: "/sms/admin/UserTemplate/updateUserTemplate", //更新UserTemplate详情

  getUserSign: "/sms/admin/userSign/getUserSign",
  updateSign: "/sms/admin/userSign/updateSign",
  updateSignDefault: "/sms/admin/userSign/updateSignDefault",
  addSign: "/sms/admin/userSign/addSign",
  deleteSign: "/sms/admin/userSign/deleteSign",

  //产品信息列表
  addProduct: "/sms/admin/product/addProduct", //添加Product详情
  deleteProduct: "/sms/admin/product/deleteProduct", //删除Product详情
  getProductByParams: "/sms/admin/product/getProductByParams", //根据params查找Product详情
  editProduct: "/sms/admin/product/updateProduct", //配置产品
  //所有通道
  getGatewayId: "/sms/admin/gateway/getGatewayId", //所有通道
  //通道信息列表
  addGateway: "/sms/admin/gateway/addGateway", //添加Gateway详情
  deleteGateway: "/sms/admin/gateway/deleteGateway", //删除Gateway详情
  getGatewayByParams: "/sms/admin/gateway/getGatewayByParams", //根据params查找Gateway详情
  updateGateway: "/sms/admin/gateway/updateGateway", //更新Gateway详情
  channelChangeStatus: "/sms/admin/gateway/changeStatus", //改变禁用启用状态
  //通道签名列表
  addGatewaySign: "/sms/admin/gatewaySign/addGatewaySign", //添加GatewaySign详情
  deleteGatewaySign: "/sms/admin/gatewaySign/deleteGatewaySign", //删除GatewaySign详情
  getGatewaySignByParams: "/sms/admin/gatewaySign/getGatewaySignByParams", //根据params查找GatewaySign详情
  //通道模板列表
  addGatewayTemplate: "/sms/admin/gatewayTemplate/addGatewayTemplate", //添加GatewayTemplate详情
  deleteGatewayTemplate: "/sms/admin/gatewayTemplate/deleteGatewayTemplate", //删除GatewayTemplate详情
  getGatewayTemplateByParams:
    "/sms/admin/gatewayTemplate/getGatewayTemplateByParams", //根据params查找GatewayTemplate详情
  getwaySignChangeStatus: "/sms/admin/gatewaySign/changeStatus", //修改通道签名状态详情
  //通道充值记录
  addGatewayRecharge: "/sms/admin/gatewayRecharge/addGatewayRecharge", //添加GatewayRecharge详情
  deleteGatewayRecharge: "/sms/admin/gatewayRecharge/deleteGatewayRecharge", //删除GatewayRecharge详情
  getGatewayRechargeByParams:
    "/sms/admin/gatewayRecharge/getGatewayRechargeByParams", //根据params查找GatewayRecharge详情
  //高危敏感词
  addKeyword: "/sms/admin/keyword/addKeyword", //添加Keyword详情
  deleteKeyword: "/sms/admin/keyword/deleteKeyword", //删除Keyword详情
  getKeywordByParams: "/sms/admin/keyword/getKeywordByParams", //根据params查找Keyword详情
  //平台黑名单
  addPlatformB: "/sms/admin/blacklist/addBlacklist", //添加Blacklist详情
  deletePlatformB: "/sms/admin/blacklist/deleteBlacklist", //删除Blacklist详情
  getPlatformBByParams: "/sms/admin/blacklist/getBlacklistByParams", //根据params查找Blacklist详情
  uploadBlackPhone: "/sms/admin/blacklist/importBlackPhone", //上传黑名单
  submitUploadBlackPhone: "/sms/admin/blacklist/submitBlackPhone", //提交上传的黑名单
  //账号黑名单
  addAccountBlacklist: "/sms/admin/accountBlacklist/addAccountBlacklist", //添加AccountBlacklist详情
  deleteAccountBlacklist: "/sms/admin/accountBlacklist/deleteAccountBlacklist", //删除AccountBlacklist详情
  getAccountBlacklistByParams:
    "/sms/admin/accountBlacklist/getAccountBlacklistByParams", //根据params查找AccountBlacklist详情
  //账号白名单
  addSmsWhiteList: "/sms/white/addSmsWhiteList",
  delSmsWhiteList: "/sms/white/delSmsWhiteList",
  searchSmsWhiteList: "/sms/white/searchSmsWhiteList",
  //短信管理
  //批次列表
  queryBatchByParams: "/sms/admin/batchmsg/getBatchMsgByParams", //根据params查找BatchMsg详情
  //发送列表
  queryMsgByParams: "/sms/admin/msg/getMsgByParams", //根据params查找Msg详情
  queryAllGateway: "/sms/admin/gateway/getGatewayId", //获取所有通道
  //上行列表
  queryUpMessage: "/sms/admin/receivemessage/getReceiveMessageList", //上行列表
  pushReceiveMessage: "/sms/admin/receivemessage/pushReceiveMessage", //手动推送上行短信到客户
  //统计管理
  queryCustomDayStatistic: "/sms/admin/msgstatistic/getAccountMsgByDayByParams", //客户日发送统计
  queryCustomMonthStatistic:
    "/sms/admin/msgstatistic/getAccountMsgByMonthByParams", //客户月发送统计
  queryChannelDayStatistic:
    "/sms/admin/msgstatistic/getGatewayMsgByDayByParams", //渠道日统计
  queryChannelMonthStatistic:
    "/sms/admin/msgstatistic/getGatewayMsgByMonthByParams", //渠道月统计
  querySystemDayStatistic: "/sms/admin/msgstatistic/getSystemMsgByDayByParams", //系统日统计
  querySystemMonthStatistic:
    "/sms/admin/msgstatistic/getSystemMsgByMonthByParams", //系统月统计
  getDayBillDetail:"/sms/admin/msgstatistic/getDayBillDetail",
  getMonBillDetail:"/sms/admin/msgstatistic/getMonthBillDetail",

  getMsgByMonthBySystemBill:"/sms/admin/msgstatistic/getMsgByMonthBySystemBill",
  //管理员信息
  addAdminUser: "/sms/admin/addUser", //添加Admin用户
  deleteAdminUser: "/sms/admin/delUser", //删除Admin用户
  getAdminUserByParams: "/sms/admin/getUsers", //查询admin用户
  editAdminUser: "/sms/admin/modUser", //编辑Admin用户
  getAllRole: "/sms/admin/role/getRolesDic", //获取所有角色
  //角色管理
  addRole: "/sms/admin/role/addRole", //添加角色
  deleteRole: "/sms/admin/role/delRole", //删除角色
  getRolesByParams: "/sms/admin/role/getRoles", //查询全部角色
  modAuth: "/sms/admin/role/modAuth", //分配权限
  editRole: "/sms/admin/role/modRole", //更新角色
  authTree: "/sms/admin/permission/getPermissionsTree", //权限树
  refreshAuth: "/sms/admin/refreshAuth", //更新权限
  //权限管理
  addPermission: "/sms/admin/permission/addPermission", //添加权限
  delPermission: "/sms/admin/permission/delPermission", //删除权限
  getPermissionsByParams: "/sms/admin/permission/getPermissions", //查询权限
  editPermission: "/sms/admin/permission/modPermission", //修改权限
  getAllParent: "/sms/admin/permission/getMenuDic", //查询所有父节点
  //控制中心
  loadAccountBlackList: "/sms/admin/load/accountBlacklist", //加载账号黑名单
  loadAllInfo: "/sms/admin/load/all", //加载所有信息
  loadSysBlackList: "/sms/admin/load/blacklist", //加载系统黑名单
  loadGateWayInfo: "/sms/admin/load/gateway", //加载网关信息
  loadKeyWordInfo: "/sms/admin/load/keyWord", //加载关键词信息
  loadProductInfo: "/sms/admin/load/product", //加载产品信息
  loadPortInfo: "/sms/admin/load/test", //测试接口信息
  loadAccountInfo: "/sms/admin/load/user", //加载账号信息
  loadUserTemplate: "/sms/admin/load/userTemplate", //加载用户模板信息
  loadMate: "/sms/admin/load/mate",
  loadWhiteList: "/sms/admin/load/loadWhiteList",
  loadSign: "/sms/admin/load/loadSign",
  //日志列表
  getLogByParams: "/sms/admin/log/getLogByParams", //获取日志列表
  //发送短信
  sendMessage: "/sms/admin/webSend/sendMessage", //发送短信
  importPhone: "/sms/admin/webSend/importPhone", //导入号码
  getAccountInfoByUser: "/sms/admin/user/getAccountInfo", //根据账号查询账户信息
  downloadTemplate:
    "/sms/admin/webSend/downloadTemplate?fileName=phoneTemplate.csv", //下载模板

  //查询所有注册信息
  getRegisterUserList: "/sms/admin/register/getRegisterUserList",
  //一键开户
  openAccount: "/sms/admin/register/openAccount",
  //审核驳回
  registerReject: "/sms/admin/register/reject",

  //根据params查找BatchMsgAudit详情
  getAuditBatchByParams: "/sms/admin/auditBatch/getAuditBatchByParams",
  //审批批次信息状态
  updateBatchAuditByBatchId: "/sms/admin/auditBatch/updateBatchAuditByBatchId"
};

var Api = {};

for (let item in path) {
  Api[item] = port.serve + path[item];
}

export default Api;
